<?php  $ast_puja_template = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Puja examples</title>
<style>
	body{
		margin:0px;
		background:lemonchiffon;
	}
	.current_bug{
		color:red;
	}
	.header{
		background:darkred;
		padding:10px;
	}
	.content{
		padding-left:10px;
	}
	ol{
		border: 1px solid #ccc;
		padding-top:10px;
		padding-bottom:10px;
		background:#fff;
	}
	ol li{
		padding:2px 0px 2px 40px;
		border-bottom:1px solid #eee;
	}
	
</style>
</head>
<body>
<div class="header">
<img src="
ZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAA
AAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5U
Y3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6
eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8w
Mi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpE
ZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRv
YmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNv
bS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20v
eGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRv
YmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU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P1eyZLHuEXPywWYsYxHGwmBg6Dos1SWJgGGFizANAw80Vn30VGzo6eLcEncxa6
Uiwd+O4bZ8s1RXtIIph0+coty9n2txNOkpPHhHIy90/ms3oLG1MQpJ2hmAIg8pBZ
BQ4lNkpjcFN0gIq5vSIcte9IawBQWxhYWDY7wb06kErEDr1wnVjoVjLL93u6Mwwn
cDOFK2BuPCUiT44lU9Tkmr60BjffzFD6SFOTDLvI9Ckkw6vlsFMIaBLI9Mgbh+ET
CPRmS863gVTAlsaYgHKKUK7znHoMIzHJFivNW3uyBJPiHehZPPmuYH0R8pHIxtzi
swx4DTQrYgBBgWNHC2VePnNtrDzc7ylWZmIDA/1/HapshKcK6RYyQ4GgeqbCHZj3
b/hJ6YjUKVjMhZ53HsmkHdXVRLSvW/UX0f2ZNv0CpXYLW2S4jwlMVeTaC7iYtxUt
um8AY+ORbc6oqGzsQ4zktfVSJcoVeV0Pps2ZpVcy0Zivhv1Mjd8zq0zh/wzy56cq
62WhX5kDBvdHTeSepqtUsX1qYnYfuYewlMG8ht//cGmuxu4wfEOjpvMHmyRBtMuI
8srH5oopFhO9C5aKYCaRk0mWBAiv56XDIngGIVn2Eev/W1v03gZAwI7Ib0TJPlLg
HJoMiq0/QDOjJtmu5FMvBF7BWKdYIi1Bt7nd80c6dY8lQSCLXzJvXJ+SsjKQv5bi
8VpDWxRRnry3p/1rR/MhZ1XTvEwkSVrwqV+3+ntGQv4bCTHvstj6nJJqeGPSLn/q
i/wfAGIvfr5mOELtrxaSpOGE20ZGu3yFn1Ti8RJLM8C+yTSPBMBFPF4vvAf23DiC
jgTZT5baWAGAzUKdfriJkI/s4WTXvGo1YB6YszeHVIvnN5Oxzr+iHHMPQQB7mo0j
WHQrQDSVzim2aYHMqVaat2DpSwYtOOzGN9C++tsReq99942ZeWX7T4ABAFyslfiB
TqE0AAAAAElFTkSuQmCC" alt="Puja" /></div>
<div class="content">
<table width="100%">
	<tr>
		<td width="20%" valign="top">
			<a href="index.php">Hello world</a><br />
			<a href="variable.php">Variables</a><br />
			<a href="structure.php">Control Structures</a><br />
			<a href="subtemplate.php">Sub Template</a><br />
			<a href="filter.php">Filters</a><br />
			<a href="custom.php">Custom filters and tags</a><br />
			<a href="build_compress.php">Build compress version</a><br />
		</td>
		<td valign="top">
		
<form name="export" method="post" onsubmit="return checkCompress(this);">
	Target: <br />
	'; $ast_puja_template .= isset($target)?$target:null; $ast_puja_template .= ''; $ast_puja_template .= isset($directory_separator)?$directory_separator:null; $ast_puja_template .= '<input name="folder" value="cache" />'; $ast_puja_template .= isset($directory_separator)?$directory_separator:null; $ast_puja_template .= '<br />
	<input type="submit" value="Compress &gt;&gt;">
	<div id="list_file"></div>
</form>
</pre>
		
		</td>
	</tr>
</table>
</div>

<script type="text/javascript" src="templates/jquery-1.3.2.min.js"></script>
<script>
	function checkCompress(doc){
		if(doc.folder.value==\'\'){
			console.log(\'---\')
			alert(\'Please enter the target folder\');
			return false;
		}
		$.post(\'build_compress.php\',$(doc).serialize(),function(data){
			if(data.status){
				$(\'#list_file\').html(\'\');
				$(data.list_file).each(function(k,v){
					$(\'#list_file\').append(\'<p rel="\'+v+\'" class="source">\'+v+\'<span>Loading...</span></p>\');
				})	
			}else{
				$(\'#list_file\').html(data.msg);
			}
			
			$(\'.source\').each(function(){
				var file = $(this).attr(\'rel\');
				var obj = this;
				$.get(\'build_compress\',{\'src\':file,\'folder\':data.folder},function(data){
					$(obj).find(\'span\').html(\'OK\');
				})
			})
		},\'json\')
		return false;
	}
</script>

</body>
</html>';